﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ourmsg.FileTransmit
{
    /// <summary>
    /// 传输文件信息
    /// </summary>
    public class TFileInfo
    {
        public TFileInfo( )
        {

        }

        public TFileInfo(string md5, string extension)
        {
            MD5 = md5;
            Extension = extension;
        }
 
        /// <summary>
        /// 传输的文件路径
        /// </summary>
        public string fullName; 
        /// <summary>
        /// 传输的文件名
        /// </summary>
        public string Name; 
        /// <summary>
        /// 传输文件的大小
        /// </summary>
        public long Length; 
        /// <summary>
        /// 文件尺寸中文描述
        /// </summary>
        public string LengthStr = "0"; 
        /// <summary>
        /// 当前传输完成的文件长度
        /// </summary>
        public long CurrLength = 0; 
        /// <summary>
        /// 文件MD5值
        /// </summary>
        public string MD5 = ""; 
        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension = "";
        /// <summary>
        /// 是否发送方
        /// </summary>
        public bool IsSend = false;
    }
}
